// 用户模块
export default {
  namespaced:true,
  state() {
    return {
      profile:{
        id:'',
        avatar:'',
        nickname:'',
        account:'',
        mobile:'',
        token:''
      }
    }
  },
  mutations:{
    // 修用户信息，payload就是用户信息对象
    setUser(state,payload){
      state.profile = payload
    }
  }
}